#region Using
using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
#endregion Using

namespace CY.GFive.Core.Business
{
	public class NoteRange : Business.BusinessBase<NoteRange, int>
	{
		#region Fields and Properties

		private int noteState = 0;
		/// <summary>
		/// 
		/// </summary>
		public int NoteState
		{
			get { return noteState; }
			set
			{
				if (value != noteState)
				{
					MarkChanged("NoteState");
					noteState = value;
				}
			}
		}

		private int reciverKey = 0;
		/// <summary>
		/// 
		/// </summary>
		public int ReciverKey
		{
			get { return reciverKey; }
			set
			{
				if (value != reciverKey)
				{
					MarkChanged("ReciverKey");
					reciverKey = value;
				}
			}
		}

		private int reciverType = 0;
		/// <summary>
		/// 
		/// </summary>
		public int ReciverType
		{
			get { return reciverType; }
			set
			{
				if (value != reciverType)
				{
					MarkChanged("ReciverType");
					reciverType = value;
				}
			}
		}

		private String moduleKey = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String ModuleKey
		{
			get { return moduleKey; }
			set
			{
				if (value != moduleKey)
				{
					MarkChanged("ModuleKey");
					moduleKey = value;
				}
			}
		}

		private int noteKey = 0;
		/// <summary>
		/// 
		/// </summary>
		public int NoteKey
		{
			get { return noteKey; }
			set
			{
				if (value != noteKey)
				{
					MarkChanged("NoteKey");
					noteKey = value;
				}
			}
		}

		#endregion Fields and Properties

		#region Constructors

		public NoteRange()
		{
		}

		#endregion Constructors

		#region Base overrides

		protected override void ValidationRules()
		{
		}

		protected override NoteRange DataSelect(int id)
		{
			return Services.DALService.NoteRangeService.Select(id);
		}

		protected override void DataUpdate()
		{
			Services.DALService.NoteRangeService.Update(this);
		}

		protected override void DataInsert()
		{
			Services.DALService.NoteRangeService.Insert(this);
		}

		protected override void DataDelete()
		{
			Services.DALService.NoteRangeService.Delete(this);
		}

		#endregion Base overrides
	}
}
